import request from "./request.js"
 
export default {
	// ****************** 广告管理 ******************
	// 广告管理 - 首页广告列表(v1)
	GetAdvertisement(params) {
		return request("/school/miaoxiaopeng/api/school/advertisement/v1/list", "POST", "application/json", params)
	},
	// 开关
	GetOpenStatus(params) {
		return request("/school/miaoxiaopeng/api/other/v1/other/oneOrZero", "POST", "application/json", params)
	},
	
	
	// ****************** 学校管理 ******************
	// 学校管理 - 学校名称查询(v1)
	GetCollegeList(params) {
		return request("/school/miaoxiaopeng/api/school/schoolName/v1/schoolName/list", "POST", "application/json", params)
	},
	
	// ****************** 动态 ******************
	// 动态分类 - 分类列表查询(v1)
	GetPostTypeList(params) {
		return request("/school/miaoxiaopeng/api/school/worldType/v1/worldType/list", "POST", "application/json", params)
	},
	// 动态管理 - 查询动态列表(v1)
	GetPostList(params) {
		return request("/school/miaoxiaopeng/api/school/world/v1/worldList", "POST", "application/json", params)
	},
	// 动态管理 - 动态详情(v1)
	GetPostDetail(params) {
		return request("/school/miaoxiaopeng/api/school/world/v1/findWorld/info", "POST", "application/json", params)
	},
	// 动态评论 - 获取动态评论列表(v1)
	GetPostCommentList(params) {
		return request("/school/miaoxiaopeng/api/school/worldComment/v1/worldId/worldComment", "POST", "application/json", params)
	},
	// 动态回复管理 - 取得动态评论回复列表(v1)
	GetPostReplyList(params) {
		return request("/school/miaoxiaopeng/api/school/worldReply/v1/reply/list", "POST", "application/json", params)
	},
	// 动态管理 - 动态点赞/取消点赞(v1)
	PostPraise(params) {
		return request("/school/miaoxiaopeng/api/school/worldLike/v1/praiseWorld/addOrCancelPraise", "POST", "application/json", params)
	},
	// 动态评论 - 新增动态评论(v1)
	AddPostComment(params) {
		return request("/school/miaoxiaopeng/api/school/worldComment/v1/userId/add", "POST", "application/json", params)
	},
	// 动态回复管理 - 新增动态评论回复(v1)
	AddPostReply(params) {
		return request("/school/miaoxiaopeng/api/school/worldReply/v1/reply/add", "POST", "application/json", params)
	},
	// 动态发布 - 发布新的动态(v1)
	AddPost(params) {
		return request("/school/miaoxiaopeng/api/school/world/v1/addWorld/add", "POST", "application/json", params)
	},
	// 动态管理 - 我发布的动态列表(v1)
	GetMyPostList(params) {
		return request("/school/miaoxiaopeng/api/school/world/v1/myWorld/myWorldList", "POST", "application/json", params)
	},
	// 点赞动态管理 - 获取点赞动态列表(v1)
	GetLikePostList(params) {
		return request("/school/miaoxiaopeng/api/school/worldLike/v1/myLike/getUserLikeList", "POST", "application/json", params)
	},
	// 动态管理 - 删除发布的动态(v1)
	DelMyPost(params) {
		return request("/school/miaoxiaopeng/api/school/world/v1/del", "POST", "application/json", params)
	},
	
	
	// ****************** 用户 ******************
	// 用户管理 - 发送验证码(v1)
	GetSmsCode(params) {
		return request("/school/miaoxiaopeng/api/school/user/v1/send/getSmsCode", "POST", "application/json", params)
	},
	// 用户管理 - 绑定手机(v1)
	BindPhone(params) {
		return request("/school/miaoxiaopeng/api/school/user/v1/user/realInfo", "POST", "application/json", params)
	},
	// 用户管理 - 取得用户详情
	GetUserInfo(params) {
		return request("/school/miaoxiaopeng/api/school/user/user/userInfo", "POST", "application/json", params)
	},
	// 用户管理 - 修改用户信息(v1)
	UpdateUserInfo(params) {
		return request("/school/miaoxiaopeng/api/school/user/v1/updateUserInfo", "POST", "application/json", params)
	},
	// 身份管理 - 详情(v1)
	GetIdentityInfo(params) {
		return request("/school/miaoxiaopeng/api/school/userIdentity/v1/identity/info", "POST", "application/json", params)
	},
	// 身份管理 - 发布身份(v1)
	AddIdentity(params) {
		return request("/school/miaoxiaopeng/api/school/userIdentity/v1/addIdentity/add", "POST", "application/json", params)
	},
	// 地址管理 - 查看我的收货地址列表(v1)
	GetMyAddressList(params) {
		return request("/school/miaoxiaopeng/api/school/address/v1/addressList", "POST", "application/json", params)
	},
	// 地址管理 - 添加收获地址/修改地址(v1)
	EditMyAddress(params) {
		return request("/school/miaoxiaopeng/api/school/address/v1/aveorupdate", "POST", "application/json", params)
	},
	// 收获地址管理 - 删除地址(v1)
	DelMyAddress(params) {
		return request("/school/miaoxiaopeng/api/school/address/v1/deleteAddress", "POST", "application/json", params)
	},
	// 地址管理 - 直接修改状态(v1)
	UpdateMyAddressStatus(params) {
		return request("/school/miaoxiaopeng/api/school/address/v1/updateStatus", "POST", "application/json", params)
	},
	
	// ****************** 小程序 ******************
	// 微信小程序 - 登录
	WXLogin(params) {
		return request("/school/miaoxiaopeng/api/school/user/v1/register/registerAndLogin", "POST", "application/json", params)
	},
	
	
	// ****************** 订单管理 ******************
	// 订单管理 - 提交订单界面(V1)
	GetOrderInfo(params) {
		return request("/school/miaoxiaopeng/api/school/order/v1/orderFormInfo", "POST", "application/json", params)
	},
	
	
	// ****************** 支付管理 ******************
	
	
	
	// ****************** 消息管理 ******************
	// 消息管理 - 取得全部角标数量(v1)
	GetAllBadge(params) {
		return request("/school/miaoxiaopeng/api/school/message/v1/messageAllCount", "POST", "application/json", params)
	},
	// 消息管理 - 获取消息角标-评论点赞 审核通知 平台通知(v1)
	GetMessageCount(params) {
		return request("/school/miaoxiaopeng/api/school/message/v1/messageCount", "POST", "application/json", params)
	},
	// 取得消息列表
	GetMessageList(params) {
		return request(`/school/miaoxiaopeng/api/school/message/v1/messageType/list`, "POST", "application/json", params)
	},
	// 消息管理 - 已读消息并且消息详情
	ReadMessage(params) {
		return request(`/school/miaoxiaopeng/api/school/message/v1/message/readMessage`, "POST", "application/json", params)
	},
	// 一键已读留言
	QuickReadAll(params) {
		return request(`/school/miaoxiaopeng/api/school/message/v1/message/readAllMessage`, "POST", "application/json", params)
	},
	
	
	// ****************** 文件 ******************
	// 文件管理 - 取得七牛上传使用TOKEN
	GetUploadToken(params) {
		return request(`/school/miaoxiaopeng/api/school/file/getUploadToken`, "POST", "application/json", params)
	},
	// 文件管理 - 取得七牛下载使用TOKEN
	GetDownloadToken(params) {
		return request(`/school/miaoxiaopeng/api/school/file/getDownloadToken`, "POST", "application/json", params)
	},
	
	
	// ****************** 举报 ******************
	// 举报管理 - 新增举报(v1)
	AddReport(params) {
		return request(`/school/miaoxiaopeng/api/school/report/v1/userId/add`, "POST", "application/json", params)
	},
	
	
	// ****************** 商家管理 ******************
	// 集市管理 - 添加/修改集市认证
	AddSettleMerchant(params) {
		return request(`/school/miaoxiaopeng/api/school/authent/v1/authernt/add`, "POST", "application/json", params)
	},
	// 集市管理 - 集市认证详情
	GetSettleMerchant(params) {
		return request(`/school/miaoxiaopeng/api/school/authent/v1/authernt/info`, "POST", "application/json", params)
	},
	// 商家店铺 - 店铺详情(v1)
	GetMerchantInfo(params) {
		return request(`/school/miaoxiaopeng/api/school/merchant/v1/merchantInfo`, "POST", "application/json", params)
	},
	// 商家店铺 - 商家列表(v1)
	GetMerchantList(params) {
		return request(`/school/miaoxiaopeng/api/school/merchant/v1/merchantList`, "POST", "application/json", params)
	},
	// 商家店铺 - 修改店铺信息(v1)
	UpdateMerchantInfo(params) {
		return request("/school/miaoxiaopeng/api/school/merchant/v1/updateMerchant", "POST", "application/json", params)
	},
	
	
	// ****************** 商品信息 ******************
	// 商品分类 - 商品分类列表(v1)
	GetGoodsTypeList(params) {
		return request(`/school/miaoxiaopeng/api/school/goodsType/v1/goodsTypeList`, "POST", "application/json", params)
	},
	// 商品分类 - 添加或修改分类(v1)
	AddGoodsType(params) {
		return request(`/school/miaoxiaopeng/api/school/goodsType/v1/saveOrupdate`, "POST", "application/json", params)
	},
	// 商品分类 - 删除分类(注意：里面所有的商品全部删除)(v1)
	DelGoodsType(params) {
		return request(`/school/miaoxiaopeng/api/school/goodsType/v1/delGoodsType`, "POST", "application/json", params)
	},
	// 商品信息 - 添加或者保存商品(v1)
	AddGoods(params) {
		return request(`/school/miaoxiaopeng/api/school/goods/v1/saveOrupdateGoods`, "POST", "application/json", params)
	},
	// 商品信息 - 商品信息列表(v1)
	GetGoodsList(params) {
		return request(`/school/miaoxiaopeng/api/school/goods/v1/goodsLists`, "POST", "application/json", params)
	},
	// 商品信息 - 删除商品(v1)
	DelGoods(params) {
		return request(`/school/miaoxiaopeng/api/school/goods/v1/removeGoods`, "POST", "application/json", params)
	},
	// 商品信息 - 商家上架或者下架商品(v1)
	ChangeGoodsStatus(params) {
		return request(`/school/miaoxiaopeng/api/school/goods/v1/changeStatus`, "POST", "application/json", params)
	},
}